import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ELIcons from '@element-plus/icons-vue'

import 'normalize.css'
import '../src/assets/css/index.css'
import { setupStore, store } from './store'
//初始化vuex
setupStore()
const app = createApp(App)
for (const name in ELIcons) {
  app.component(name, (ELIcons as any)[name])
}
app.use(store).use(ElementPlus).use(router).mount('#app')
